﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MsLine.aspx.cs" Inherits="MsLine" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="stylesheet" href="Css/Style.css" type="text/css" />

    <script type="text/javascript" language="JavaScript" src="Js/FusionCharts.js"></script>

    <style type="text/css">
        body
        {
            margin: 0;
            padding: 0;
            font-size: 12px;
        }
        form
        {
            margin: 0;
            padding: 0;
            margin-top: 8px;
            margin-left: 3px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table width="80%">
        <tr>
            <td style="width: 120px;">
                <asp:DropDownList ID="drpType" Style="width: 100px;" runat="server" onchange="loadFlash(this.value)">
                </asp:DropDownList>
            </td>
            <td align="center" style="width: 160px;">
                当前站点：<asp:Literal ID="ltSiteName" runat="server"></asp:Literal>
            </td>
            <td align="left">
                <a href="MsLineDetail.aspx?siteId=<%=base.GetSite %>" target="_blank">
                    <div style="height: 19px; line-height: 19px; width: 50px; text-align: center; font-size: 12px;
                        cursor: pointer; border: 1px solid #999999; color: #000000">
                        详细</div>
                </a>
            </td>
        </tr>
    </table>
    <div id="chartdiv" align="center">
        FusionCharts.
    </div>

    <script type="text/javascript" language="javascript">
    function loadFlash(type)
    {

    
       var fSwf="FCF_Line";
       if(document.getElementById("drpType").value=="A0012")
       {
            fSwf = "FCF_Column2D";
       }
       var chart = new FusionCharts("Swf/"+fSwf+".swf", "ChartId", "500", "240");


       chart.setDataURL("GetXml.aspx?pram="+type+",<%=base.GetSite %>");		   
       chart.render("chartdiv");
    }
    loadFlash("A0013");
    
    
    </script>

    </form>
</body>
</html>

<script language="javascript" type="text/javascript">
 var t=""
 function refrash()
 {
    try{window.parent.parent.parent.frames["content"].frames["jinyu-table"].location.href="MsLineIframe.aspx";}
    catch(e){
        if(t=="")
            t=setTimeout(refrash,2000);
    }
 }
refrash();
</script>

